package User;

import operation.*;

import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * User: wenxiwen
 * Date: 2022/4/13
 * Time: 18:27
 * Description: No Description
 */
public class User extends Animal{

    public User(String name) {
        super(name);
        this.name = name;
        this.ioperation = new IOperation[]{
                new Exit(),
                new Find(),
                new Borrow(),
                new Return(),
                new Display(),
        };
    }
    public int menu() {
        System.out.println("hello "+this.name+" 欢迎来到图书小练习");
        System.out.println("1.查找图书");
        System.out.println("2.借阅图书");
        System.out.println("3.归还图书");
        System.out.println("4.显示图书");
        System.out.println("0.退出系统");
        Scanner scan = new Scanner(System.in);
        int input = scan.nextInt();
        return input;
    }
}